<html lang="zh-CN">

<head>
    {% load bootstrap4 %}
    {% bootstrap_css %}
    {% bootstrap_javascript %}
    <title>自动化测试平台</title>
</head>
<body role="document">
<!--导航栏-->
<nav class="navbar navbar-expand-sm bg-dark navbar-dark fixed-top">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-header" href="#">自动化测试平台</a>
        </div>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <div id="navbar" class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="active">
                    <a href="#">流程接口测试</a>
                </li>
                &nbsp;&nbsp;&nbsp;&nbsp;
                <li>
                    <a href="#">流程接口测试步骤</a>
                </li>
            </ul>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <ul class="nav justify-content-end" style="position:absolute; right:10px; bottom:0; ">
                <li class="nav-link"><a style='color:white' href="#">{{user}}</a></li>
                <li class="nav-link"><a style='color:white' href="/logout/">退出</a></li>
            </ul>
        </div>
    </div>
</nav>


<!--流程接口列表-->
<div class="row" style="padding-top: 50px;">
    <div class="col-md-12">
        <table class="table table-striped">
            <thead>

            <tr>
                <th>ID</th>
                <th>产品</th>
                <th>流程接口测试用例名称</th>
                <th>流程接口描述</th>
                <th>测试负责人</th>
                <th>测试结果</th>
                <th>测试用例步骤</th>
            </tr>
            </thead>
            <tbody>
            {% for apitest in apitests %}
            <tr>
                <td>{{ apitest.id }}</td>
                <td>{{ apitest.Product.productname }}</td>
                <td>{{ apitest.apitestname }}</td>
                <td>{{ apitest.apitestdesc }}</td>
                <td>{{ apitest.apitester }}</td>
                <td>{{ apitest.apitestresult }}</td>
                <td>{{ apitest.Apistep.apiteststep }}</td>
            </tr>
            {% endfor %}
            </tbody>
        </table>
    </div>
</div>


</body>
</html>
